package com.scy.java.Test.Test04;
//练习2: (课后作业)
//        自定义书类。设定属性包括: 书名bookName，
//        作者author，出版社名publisher，价格price;
//        方法包括: 相应属性的get/set方法，图书信息介绍等。
public class Demo02 {
    private String bookName;
    public String author;
    private double price;
    private  String publisher;

    @Override
    public String toString() {
        return "Demo02{" +
                "bookName='" + bookName + '\'' +
                ", author='" + author + '\'' +
                ", price=" + price +
                ", publisher='" + publisher + '\'' +
                '}';
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }



    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
